/*******************************************************************************
 * @(#)Constants.java 2019年08月29日 17:11
 * Copyright 2019 upbos.com. All rights reserved.
 *******************************************************************************/
package com.upbos.sso;

/**
 * <b>Application name：</b> Constants.java <br>
 * <b>Application describing： 常量类</b> <br>
 * <b>Copyright：</b> Copyright &copy; 2019 upbos.com 版权所有。<br>
 * <b>Company：</b> upbos.com <br>
 * <b>@Date：</b> 2019年08月29日 17:11 <br>
 * <b>@author：</b> <a href="mailto:Jason@miyzh.com"> Jason </a> <br>
 * <b>@version：</b>V5.0.0 <br>
 */
public interface Constants {


    String SESSION_CACHE_USER_KEY_NAME = "__user";

    String SESSION_CACHE_TOKEN_KEY_NAME = "__token";

    String SESSION_CACHE_RES_KEY_NAME = "__res";

    String SESSION_CACHE_ROLE_KEY_NAME = "__role";

    String SESSION_CACHE_PRIVILEGE = "__privilege";


    String TOKEN_ID_COOKIE_NAME = "sid";

    String TOKEN_ID_PARAMETER_NAME = "_token";

    String TOKEN_ID_SPLIT_SIGN = "_";

    int TOKEN_ID_PART_LENGTH = 3;

    int TOKEN_ID_RANDOM_NUMBER_LENGTH = 8;

    String SIGN_RETURN_URL = "returnUrl";

    String STORAGE_CACHE = "storage-cache";

    String STORAGE_HTTP = "storage-http";

    String INTERCEPTOR_TOKEN = "token";

    String INTERCEPTOR_RES = "res";

    String INTERCEPTOR_SSO_SERVER_LOGIN = "sso-server-login";

    String INTERCEPTOR_SSO_SERVER_TOKEN = "sso-server-token";

    String INTERCEPTOR_SSO_CLIENT = "sso-client";
}
